package cc.yugu.yhdw.common.protocol.msg03;

import cc.yugu.yhdw.common.protocol.MsgCode;
import io.netty.buffer.ByteBuf;

public class Msg031000010 extends Msg031 {

    public byte type;
    public String date;
    public String url;

    @Override
    public int getMsgCode() {
        return MsgCode.MSG_031000010.getCode();
    }


    @Override
    public void readData(ByteBuf buffer) {
        type = buffer.readByte();
        date = readString(buffer);
        url = readString(buffer);
    }

    @Override
    public void writeData(ByteBuf buffer) {
        buffer.writeByte(type);
        writeString(buffer, date);
        writeString(buffer, url);
    }
}
